public class SunWukong extends Apprentice{


    public SunWukong(Master mediator) {
        super(mediator);
    }

    @Override
    public void sendMessage(String message) {
        System.out.println("孙悟空发送："+message);
        mediator.sendMessage(message, this);
    }

    @Override
    public void receiveMessage(String message) {
        System.out.println("孙悟空接收："+message);

    }
}
